package com.atguigu.gmall.realtime.bean

import java.text.SimpleDateFormat
import java.time.LocalDate
import java.time.format.DateTimeFormatter
import java.util.Date

/**
 * Date:2021/3/17
 * Author:csw
 * Description:
 */
case class StartUpLog(
                       mid:String,
                       uid:String,
                       appid:String,
                       area:String,
                       os:String,
                       ch:String,
                       `type`:String,
                       vs:String,
                       var logDate:String=null,
                       var logHour:String=null,
                       var ts:Long
                     )


//  val date = new Date(ts)
//  logDate=new SimpleDateFormat("yyyy-MM-dd").format(date)
//  logHour=new SimpleDateFormat("yyyy-MM-dd hh").format(date)



